home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / grafik / raytracing / magiccamera / scripts / specdemo.mc < prev    next >
Text File  |  1994-06-04  |  5KB  |  352 lines

  1. /*
  2.     This file is meant to demonstrate the affects of "seccoef" and "secrefl" on the
  3.     "color" pattern.  "seccoef" increases across the X axis of the image,
  4.     and "secrefl" increases on the Y axis.
  5.  
  6.      -----------> increasing speccoef ----------->
  7.     |
  8.     |    O    O    O    O    O
  9.     |
  10.     \/    O    O    O    O    O
  11.     increasing
  12.      secrefl    O    O    O    O    O    <-- 25 spheres
  13.     |
  14.     |    O    O    O    O    O
  15.     |
  16.     \/    O    O    O    O    O
  17. */
  18.  
  19. sky {
  20.     horizon    <0, 0, 0>
  21.     zenith    <0, 0, 0>
  22. }
  23.  
  24.  
  25. real coef0 = 10
  26. real coef1 = 20
  27. real coef2 = 40
  28. real coef3 = 80
  29. real coef4 = 160
  30.  
  31. real refl0 = .2
  32. real refl1 = .4
  33. real refl2 = .6
  34. real refl3 = .8
  35. real refl4 = 1
  36.  
  37. real sphere_radius = 2
  38. real sphere_spacing = sphere_radius*2.5
  39.  
  40. camera {
  41.     loc    <sphere_spacing*20, 0, 0>
  42.     target    <0, 0, 0>
  43.     vfov    2*atan((sphere_spacing*5+sphere_radius*2)/2/(sphere_spacing*20))
  44.     res        400 400
  45.     aspect    1
  46. }
  47.  
  48. lamp {
  49.     direct    <-.7, -1, -.2>
  50. }
  51.  
  52. color pattern00 {
  53.     diff    <0, .7, .2>
  54.     scoef    coef0
  55.     srefl    refl0
  56. }
  57.     
  58. color pattern01 {
  59.     diff    <0, .7, .2>
  60.     scoef    coef0
  61.     srefl    refl1
  62. }
  63.     
  64. color pattern02 {
  65.     diff    <0, .7, .2>
  66.     scoef    coef0
  67.     srefl    refl2
  68. }
  69.     
  70. color pattern03 {
  71.     diff    <0, .7, .2>
  72.     scoef    coef0
  73.     srefl    refl3
  74. }
  75.     
  76. color pattern04 {
  77.     diff    <0, .7, .2>
  78.     scoef    coef0
  79.     srefl    refl4
  80. }
  81.     
  82. color pattern10 {
  83.     diff    <0, .7, .2>
  84.     scoef    coef1
  85.     srefl    refl0
  86. }
  87.     
  88. color pattern11 {
  89.     diff    <0, .7, .2>
  90.     scoef    coef1
  91.     srefl    refl1
  92. }
  93.     
  94. color pattern12 {
  95.     diff    <0, .7, .2>
  96.     scoef    coef1
  97.     srefl    refl2
  98. }
  99.     
  100. color pattern13 {
  101.     diff    <0, .7, .2>
  102.     scoef    coef1
  103.     srefl    refl3
  104. }
  105.     
  106. color pattern14 {
  107.     diff    <0, .7, .2>
  108.     scoef    coef1
  109.     srefl    refl4
  110. }
  111.     
  112. color pattern20 {
  113.     diff    <0, .7, .2>
  114.     scoef    coef2
  115.     srefl    refl0
  116. }
  117.     
  118. color pattern21 {
  119.     diff    <0, .7, .2>
  120.     scoef    coef2
  121.     srefl    refl1
  122. }
  123.     
  124. color pattern22 {
  125.     diff    <0, .7, .2>
  126.     scoef    coef2
  127.     srefl    refl2
  128. }
  129.     
  130. color pattern23 {
  131.     diff    <0, .7, .2>
  132.     scoef    coef2
  133.     srefl    refl3
  134. }
  135.     
  136. color pattern24 {
  137.     diff    <0, .7, .2>
  138.     scoef    coef2
  139.     srefl    refl4
  140. }
  141.     
  142. color pattern30 {
  143.     diff    <0, .7, .2>
  144.     scoef    coef3
  145.     srefl    refl0
  146. }
  147.     
  148. color pattern31 {
  149.     diff    <0, .7, .2>
  150.     scoef    coef3
  151.     srefl    refl1
  152. }
  153.     
  154. color pattern32 {
  155.     diff    <0, .7, .2>
  156.     scoef    coef3
  157.     srefl    refl2
  158. }
  159.     
  160. color pattern33 {
  161.     diff    <0, .7, .2>
  162.     scoef    coef3
  163.     srefl    refl3
  164. }
  165.     
  166. color pattern34 {
  167.     diff    <0, .7, .2>
  168.     scoef    coef3
  169.     srefl    refl4
  170. }
  171.     
  172. color pattern40 {
  173.     diff    <0, .7, .2>
  174.     scoef    coef4
  175.     srefl    refl0
  176. }
  177.     
  178. color pattern41 {
  179.     diff    <0, .7, .2>
  180.     scoef    coef4
  181.     srefl    refl1
  182. }
  183.     
  184. color pattern42 {
  185.     diff    <0, .7, .2>
  186.     scoef    coef4
  187.     srefl    refl2
  188. }
  189.     
  190. color pattern43 {
  191.     diff    <0, .7, .2>
  192.     scoef    coef4
  193.     srefl    refl3
  194. }
  195.     
  196. color pattern44 {
  197.     diff    <0, .7, .2>
  198.     scoef    coef4
  199.     srefl    refl4
  200. }
  201.     
  202. sphere {
  203.     loc    <0, -(0-2)*sphere_spacing, -(0-2)*sphere_spacing>
  204.     radius    sphere_radius
  205.     pattern    pattern00
  206. }
  207.  
  208. sphere {
  209.     loc    <0, -(0-2)*sphere_spacing, -(1-2)*sphere_spacing>
  210.     radius    sphere_radius
  211.     pattern    pattern10
  212. }
  213.  
  214. sphere {
  215.     loc    <0, -(0-2)*sphere_spacing, -(2-2)*sphere_spacing>
  216.     radius    sphere_radius
  217.     pattern    pattern20
  218. }
  219.  
  220. sphere {
  221.     loc    <0, -(0-2)*sphere_spacing, -(3-2)*sphere_spacing>
  222.     radius    sphere_radius
  223.     pattern    pattern30
  224. }
  225.  
  226. sphere {
  227.     loc    <0, -(0-2)*sphere_spacing, -(4-2)*sphere_spacing>
  228.     radius    sphere_radius
  229.     pattern    pattern40
  230. }
  231.  
  232. sphere {
  233.     loc    <0, -(1-2)*sphere_spacing, -(0-2)*sphere_spacing>
  234.     radius    sphere_radius
  235.     pattern    pattern01
  236. }
  237.  
  238. sphere {
  239.     loc    <0, -(1-2)*sphere_spacing, -(1-2)*sphere_spacing>
  240.     radius    sphere_radius
  241.     pattern    pattern11
  242. }
  243.  
  244. sphere {
  245.     loc    <0, -(1-2)*sphere_spacing, -(2-2)*sphere_spacing>
  246.     radius    sphere_radius
  247.     pattern    pattern21
  248. }
  249.  
  250. sphere {
  251.     loc    <0, -(1-2)*sphere_spacing, -(3-2)*sphere_spacing>
  252.     radius    sphere_radius
  253.     pattern    pattern31
  254. }
  255.  
  256. sphere {
  257.     loc    <0, -(1-2)*sphere_spacing, -(4-2)*sphere_spacing>
  258.     radius    sphere_radius
  259.     pattern    pattern41
  260. }
  261.  
  262. sphere {
  263.     loc    <0, -(2-2)*sphere_spacing, -(0-2)*sphere_spacing>
  264.     radius    sphere_radius
  265.     pattern    pattern02
  266. }
  267.  
  268. sphere {
  269.     loc    <0, -(2-2)*sphere_spacing, -(1-2)*sphere_spacing>
  270.     radius    sphere_radius
  271.     pattern    pattern12
  272. }
  273.  
  274. sphere {
  275.     loc    <0, -(2-2)*sphere_spacing, -(2-2)*sphere_spacing>
  276.     radius    sphere_radius
  277.     pattern    pattern22
  278. }
  279.  
  280. sphere {
  281.     loc    <0, -(2-2)*sphere_spacing, -(3-2)*sphere_spacing>
  282.     radius    sphere_radius
  283.     pattern    pattern32
  284. }
  285.  
  286. sphere {
  287.     loc    <0, -(2-2)*sphere_spacing, -(4-2)*sphere_spacing>
  288.     radius    sphere_radius
  289.     pattern    pattern42
  290. }
  291.  
  292. sphere {
  293.     loc    <0, -(3-2)*sphere_spacing, -(0-2)*sphere_spacing>
  294.     radius    sphere_radius
  295.     pattern    pattern03
  296. }
  297.  
  298. sphere {
  299.     loc    <0, -(3-2)*sphere_spacing, -(1-2)*sphere_spacing>
  300.     radius    sphere_radius
  301.     pattern    pattern13
  302. }
  303.  
  304. sphere {
  305.     loc    <0, -(3-2)*sphere_spacing, -(2-2)*sphere_spacing>
  306.     radius    sphere_radius
  307.     pattern    pattern23
  308. }
  309.  
  310. sphere {
  311.     loc    <0, -(3-2)*sphere_spacing, -(3-2)*sphere_spacing>
  312.     radius    sphere_radius
  313.     pattern    pattern33
  314. }
  315.  
  316. sphere {
  317.     loc    <0, -(3-2)*sphere_spacing, -(4-2)*sphere_spacing>
  318.     radius    sphere_radius
  319.     pattern    pattern43
  320. }
  321.  
  322. sphere {
  323.     loc    <0, -(4-2)*sphere_spacing, -(0-2)*sphere_spacing>
  324.     radius    sphere_radius
  325.     pattern    pattern04
  326. }
  327.  
  328. sphere {
  329.     loc    <0, -(4-2)*sphere_spacing, -(1-2)*sphere_spacing>
  330.     radius    sphere_radius
  331.     pattern    pattern14
  332. }
  333.  
  334. sphere {
  335.     loc    <0, -(4-2)*sphere_spacing, -(2-2)*sphere_spacing>
  336.     radius    sphere_radius
  337.     pattern    pattern24
  338. }
  339.  
  340. sphere {
  341.     loc    <0, -(4-2)*sphere_spacing, -(3-2)*sphere_spacing>
  342.     radius    sphere_radius
  343.     pattern    pattern34
  344. }
  345.  
  346. sphere {
  347.     loc    <0, -(4-2)*sphere_spacing, -(4-2)*sphere_spacing>
  348.     radius    sphere_radius
  349.     pattern    pattern44
  350. }
  351.  
  352.